/** @file   pacer.h
    @author M. P. Hayes, UCECE
    @date   21 August 2007
    @brief  Support for paced loops.
*/
#ifndef PACER_H
#define PACER_H

#include "config.h"

/* Define size of pacer rates.  */
typedef uint16_t pacer_rate_t;

/* Wait for the next pacer tick.  */
extern void pacer_wait (void);

/* Initialise pacer for desired rate in Hz.  */
extern void pacer_init (pacer_rate_t pacer_rate);

#endif /* PACER_H  */
